import request from '@/utils/request'

export function login(username, password, code, uuid) {
    const data = {
        username,
        password,
        code,
        uuid
    }
    console.log(username)
    console.log(password)
    console.log(code)
    console.log(uuid)
    return request({
        url: '/login',
        method: 'post',
        data: data
    })
}

export function getCodeImg() {
    return request({
        url: '/captchaImage',
        method: 'get'
    })
}

export function getInfo() {
    console.log('api login getInfo')
    return request({
        url: '/getInfo',
        method: 'get'
    })
}
